package factory.components;

import org.eclipse.swt.SWT;

import core.Component;
import core.Coordinate;
import factory.ComponentInterface;

public class Stack implements ComponentInterface {
	private int orientation;
	private Component component;
	private final int priority = 3;

	public Stack() {
		component = new Component(new Coordinate(0, 0), new Coordinate(0, 0));
		this.orientation = SWT.UP;
	}

	public Stack(Coordinate position, Coordinate size, int orientation) {
		component = new Component(position, size);
		this.orientation = orientation;
	}

	public Coordinate getPosition() {
		return component.getPosition();
	}

	public void setPosition(Coordinate position) {
		component.setPosition(position);
	}

	public int getOrientation() {
		return orientation;
	}

	public void setOrientation(int orientation) {
		this.orientation = orientation;
	}

	public Coordinate getSize() {
		return component.getSize();
	}

	public boolean setSize(Coordinate size) {
		component.setSize(size);
		return true;
	}
	
	public int getPriority() {
		return priority;
	}
}